/*
 * @Author: Mcfly
 * @Date: 2021-07-31 01:39:33
 * @LastEditTime: 2021-11-02 21:07:31
 * @LastEditors: Mcfly
 * @Description: 
 * @FilePath: \FTTfly\BSPdriver\OpticalFlowYTVG.h
 * 本人github:https://github.com/McflyWZX
 */
#ifndef __OPTICAL_FLOW_YTVG_H__
#define __OPTICAL_FLOW_YTVG_H__

#include "stdint.h"

typedef struct {
    uint8_t recvState;
    uint8_t SQUAL;
    uint8_t dataLoop;
    float deltaT;
    float optX;
    float optY;
}FlowYTVG;

FlowYTVG *FlowYTVG_Init(void);
void FlowYTVG_Recv(FlowYTVG *flow, uint8_t recv);
uint8_t FlowYTVG_CheckData(FlowYTVG *flow);
void FlowYTVG_EnableRotate(uint8_t isEnable);

#endif
